const vm = new Vue({
    el: '#main',
    data: {
        adrList: [],
    },
    methods: {
        goDetail,
    },
});

function apiready() {
    fxj.fixLayout();
    reqAddressList();

}

async function reqAddressList() {
    const res = await ajax({
        url: 'home/CleaningService/getCleaningList',
    });
    if (res.data) {
        vm.adrList = res.data;
    }
}

function goDetail(addr) {
    goPage('clean_keeping_detail.html', {
        data: {
            addr: encodeURIComponent(addr.address_detail),
            date: encodeURIComponent(addr.date),
            name: encodeURIComponent(addr.name),
            status: encodeURIComponent(addr.status),
            tel: encodeURIComponent(addr.phone),
        },
    });
}